@import "lib/styles/variable.scss";

.yui-carousel {
  position: relative;
  background: #8E8E93;
  &-viewport {
    overflow: hidden;
    .yui-carousel-wrapper {
      position: relative;
    }
  }
  &-item {
    width: 100%;
  }

  &-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    .yui-carousel-dot {
      display: inline-flex;
      width: 10px;
      height: 10px;
      margin: 0 6px;
      border-radius: 50%;
      background: #fff;
      opacity: 0.4;

      &:hover {
        background: #fff;
        opacity: 1;
      }

      &.yui-carousel-active {
        background: $main-color;
        opacity: 1;
      }
    }
  }
}

.yui-carousel-item-wrapper-leave-active {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.yui-carousel-item-wrapper-enter {
  transform: translateX(100%);
}

.yui-carousel-item-wrapper-enter.yui-carousel-item-wrapper-enter-active {
  transform: translateX(0);
  transition: all 500ms;
}

.yui-carousel-item-wrapper-leave {
  transform: translateX(0);
}

.yui-carousel-item-wrapper-leave.yui-carousel-item-wrapper-leave-active {
  transform: translateX(-100%);
  transition: all 500ms;
}
